import { createApp } from 'vue'
import '@/style.scss'
import App from '@/App.vue'
import router from '@/router'
//仓库
import pinia from './store'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import 'virtual:svg-icons-register'
import GlobalComponents from '@/components'
import VuePannellum from 'vue-pannellum'
import VueAMap, {initAMapApiLoader} from '@vuemap/vue-amap';
import VueAMapLoca from '@vuemap/vue-amap-loca';
import VueAMapExtra from '@vuemap/vue-amap-extra';
import '@vuemap/vue-amap/dist/style.css'



import vue3videoPlay from "vue3-video-play"; // 引入组件
import "vue3-video-play/dist/style.css"; // 引入css



//蚂蚁
// import * as Icons from '@ant-design/icons-vue'

initAMapApiLoader({
  key: '7116ac33ae907eafa7fa2c99b80e2e2a',
  securityJsCode: '8e0956b2a2cee746c5c0e5829c54e426', // 新版key需要配合安全密钥使用
  Loca:{
   version: '2.0.0'
  } // 如果需要使用loca组件库，需要加载Loca
})
var app = createApp(App)
// const icons: any = Icons
// for (const i in icons) {
//   app.component(i, icons[i])
// }
app.component('VPannellum', VuePannellum)
app.use(router)
app.use(VueAMap)
import './permission'
app.use(VueAMapExtra)
app.use(GlobalComponents)
app.use(VueAMapLoca)
app.use(pinia)
app.use(vue3videoPlay);
app.use(ElementPlus,{
    locale:zhCn
})
app.mount('#app')